/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Unit;
import javax.swing.tree.DefaultMutableTreeNode;
/**
 *
 * @author tuyentran
 */
public class ParseTextNode {
     private int level;
    private DefaultMutableTreeNode node;

    public ParseTextNode(int level, String text) {
        this.level = level;
        node = new DefaultMutableTreeNode(text);
    }

    /**
     * @return the level
     */
    public int getLevel() {
        return level;
    }

    /**
     * @return the text
     */
    public DefaultMutableTreeNode getNode() {
        return node;
    }
}
